fin = open('testdemo.txt',mode='r',encoding='uft8')
fout = open ('testdemo2.txt', mode='w', encoding='uft8')


while True:
    a = fin.readline()
    if a=='':
        break
    fout.write(a)


fout.close()
fin.close()